package test.liyi;

public class Student {
//定义一个student数组，保存学生的基本信息，姓名学号性别，分别保存三门课程的成绩计算这三门课程的平均成绩，并按照平均成绩的降序进行排序输出结果
	private String name;
	private String code;
	private String sex;
	private KeCheng Chinese;
	private KeCheng Math;
	private KeCheng English;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public KeCheng getChinese() {
		return Chinese;
	}
	public void setChinese(KeCheng chinese) {
		Chinese = chinese;
	}
	public KeCheng getMath() {
		return Math;
	}
	public void setMath(KeCheng math) {
		Math = math;
	}
	public KeCheng getEnglish() {
		return English;
	}
	public void setEnglish(KeCheng english) {
		English = english;
	}
	
}
class KeCheng{
	private String name;
	private String code;
	private double results;
	public KeCheng() {}
	public KeCheng(String name, String code, double results) {
		this.name = name;
		this.code = code;
		this.results = results;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public double getResults() {
		return results;
	}
	public void setResults(double results) {
		this.results = results;
	}
	
}
